package org.piggy.test.http.controller;

import org.piggy.client.core.ApiInvoker;
import org.piggy.client.core.ApiProtocol;
import org.piggy.client.core.ApiService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ApiService(serviceId = "gateway-test-http-002", protocol = ApiProtocol.HTTP, patternPath = "/http-test/**")
public class HttpTestController {

    @ApiInvoker(path = "/http-test/ping")
    @GetMapping("/http-test/ping")
    public String ping() {
        return "pong";
    }

}
